<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<!-- <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no"> -->
		<title>虎扑跑步</title>
		<link rel="stylesheet" type="text/css" media="screen" href="{$staticHost}/static/css/base.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="{$staticHost}/static/css/mod.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="{$staticHost}/static/css/list.css" />
		<link rel="stylesheet" type="text/css" href="{$staticHost}/static/simditor/css/simditor.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="{$staticHost}/static/css/page.css" />
		

		
		<script src="{$staticHost}/static/js/jquery-1.8.3.min.js"></script> 
		<script src="{$staticHost}/static/js/js.js"></script>
		<script src="{$staticHost}/static/js/mod.js"></script>
		
		<script type="text/javascript" src="{$staticHost}/static/simditor/js/jquery.min.js"></script>
		<script type="text/javascript" src="{$staticHost}/static/simditor/js/module.js"></script>
		<script type="text/javascript" src="{$staticHost}/static/simditor/js/hotkeys.js"></script>
		<script type="text/javascript" src="{$staticHost}/static/simditor/js/uploader.js"></script>
		<script type="text/javascript" src="{$staticHost}/static/simditor/js/simditor.js"></script>
	</head>
	<body>
		<header class="web-header">
			<img src="{$staticHost}/static/images/share/logo-h.png"> 
			<p>
				{$author}
				<a href="/show/article?logout=1">退出登录</a>
			</p>
		</header>
		<section class="bjq">
			<form id="infoForm" enctype="multipart/form-data" method="post" action="{$staticHost}/index.php?c=show&a=articleAction">
				<input class="bth" type="text" placeholder="标题" name="title" value="{$postInfo['title']}">
				<textarea id="editor" placeholder="帖子内容" autofocus name="content">{$postInfo['content']}</textarea>
        		<input type="hidden" name="news_draft_id" value="{$postInfo['news_draft_id']}">
			</form>
		</section>
		<script type="text/javascript">
			var editor = new Simditor({
                textarea: $('#editor'),
                upload: {
                    url: '{$staticHost}/show/uploadFile',
                    fileKey: 'images_0'
                }
			});

 			$(".fb").bind("click",function(event){
 				var valueLen = $("textarea").val();
	    		var title = $(".bth").val();
			    if(valueLen.length<2||title.length==0){ 
			       alert("亲,请检查贴子内容少于2个字或标题栏为空") 
			       return false;
			   }
			})
	    	
	    </script>
	</body>
{template 'show/web-footer'}